|
|
I'm trying to put a coloured bozo 'splodge' on an object, where the
color_map threshold varies from the center to the edge.
At the center of the splodge it should be:
bozo color_map [0.0 rgbf 1] [0.0 Red ] ie. all Red
Halfway towards the edge it should be
bozo color_map [0.5 rgbf 1] [0.5 Red ] ie. half and half
and at the edge
bozo color_map [1.0 rgbf 1] [1.0 Red ] ie. all background
The best approximation I have to this is:
box { <-2,-2,0> <2,2,1 >
texture { pigment {Green}}
#declare i=0;
#while (i<1.0)
texture {
pigment {
object {
sphere { 0 i }
pigment { rgbf 1 }
pigment {
bozo scale .025
color_map {
[i rgbf 1] [i Red]
}
}
}
}
}
#declare i=i+0.02;
#end
}
Which looks OK at at distance, but you can see the bands for the layers
if you are close. Is there a better way to create this effect ?
Thanks,
Bernard
Post a reply to this message
|
|